package com.example.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import com.example.model.dto.BaseDTO;
import com.example.validator.group.AddGroup;
import com.example.validator.group.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
@Data
@Schema(description = "字段类型管理DTO")
public class GenFieldTypeDTO extends BaseDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    @Schema(description = "id")
    private Long id;

    @Schema(description = "字段类型")
    private String columnType;

    @Schema(description = "属性类型")
    private String attrType;

    @Schema(description = "属性包名")
    private String packageName;
}